﻿<%@ Page Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="RelativeProductManagement.aspx.cs"
    Inherits="VCN.admin.RelativeProductManagement" %>

<asp:Content ID="Content17" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%" cellspacing="3" cellpadding="3" border="0">
        <tbody>
            <tr>
                <th scope="col" class="title" colspan="2">
                    <h2 style="color: #0099FF; font-size: x-large;">
                        CẬP NHẬT SẢN PHẨM LIÊN QUAN</h2>
                </th>
            </tr>
            <tr>
                <td colspan="2" class="row" align="center" style="height: 5px">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td 
                    
                    style="height: 32px; color: #0099FF; width: 18%; font-weight: bold;">
                    Tên loại sản phẩm&nbsp;
                </td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <asp:DropDownList ID="ddl_Category" runat="server" Width="173px" 
                        OnSelectedIndexChanged="ddl_Category_SelectedIndexChanged" AutoPostBack="True">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td 
                    
                    style="height: 32px; color: #0099FF; width: 18%; font-weight: bold;">
                    Tên sản phẩm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                 </td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <asp:DropDownList ID="ddl_Product" runat="server" Width="173px">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="ddl_Product">(*) Không có tên sản phẩm nào được chọn</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
            <td class="row" 
                    style="height: 32px; width: 18%; color: #0099FF; text-align: left; font-weight: bold;">
                    Tên SP liên quan&nbsp;&nbsp;&nbsp;</td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <asp:TextBox ID="m_txt_RelativeProductName" runat="server" Width="170px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="m_txt_RelativeProductName">(*) Chưa nhập tên SP liên quan</asp:RequiredFieldValidator>
                    
                </td>
            </tr>
            <tr>
                <td 
                    
                    style="height: 32px; color: #0099FF; width: 18%; font-weight: bold;">
                    Ảnh sản phẩm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td width="46%" align="left" class="row" style="height: 32px; width: 70%;">
                    <br />
                    <br />
                    <asp:Image ID="imgPreview" runat="server" Height="150px" Width="150px" AlternateText="No Image"
                        ImageUrl="~/admin/img/no_images.jpg" />
                    <br />
                    <br />
                    <asp:FileUpload ID="FileUpload" runat="server" ToolTip="Click here to upload an image for product." />
                    <br />
                    <br />
                </td>
            </tr>
            <tr>
                <td height="43" align="right" class="save" 
                    style="width: 18%; font-weight: bold;">
                    &nbsp;
                </td>
                <td height="43" align="left">
                    &nbsp;<asp:Button ID="btnAdd" runat="server" Text="Cập nhật" OnClick="btnAdd_click" />
                    &nbsp;<asp:Button ID="btnReset" runat="server" Text="Xóa trắng" OnClick="btnReset_Click"
                        CausesValidation="False" />
                    &nbsp;<asp:Button ID="btnCancel" runat="server" Text="Thoát" CausesValidation="False"
                        OnClick="btnCancel_click" />
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
